<template>
  <div class="home">
    <router-view></router-view>
    <van-tabbar v-model="active" route>
      <van-tabbar-item icon="home-o" to='/index'>首页</van-tabbar-item>
      <van-tabbar-item icon="comment-o" to='/headline'>头条</van-tabbar-item>
      <van-tabbar-item icon="video-o" to='/video'>视频</van-tabbar-item>
      <van-tabbar-item icon="user-o" to='/my'>我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: "home",
  data() {
    return {
      active:0,
    }
  },
};
</script>
<style lang="scss" scoped>
  .home{
    margin-bottom: 50px;
  }
</style>
